home *** CD-ROM | disk | FTP | other *** search
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- END
- Attribute VB_Name = "clsFileSysItem"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
-
- Private pChildren As clscFileSysItems
- Public strDirPath As String
- Public Name As String
- Public Size As Long
- Public DateModified As Date
- Public Image As Variant 'required. Index or key of an icon in an imagelist
- Public HasChildren As Boolean 'required. ThreadView needs this to know whether draw plus/minus
- Public Parent As clscFileSysItems
-
- 'Requred function
- Public Function Properties(value)
-
- Select Case value
- Case "Name"
- Properties = Name
- Case "Size"
- Properties = Format(Size, "Standard")
- Case "DateModified"
- Properties = DateModified
- Case Else
- 'Trap your own typing mistakes
- Properties = "#Error#"
- End Select
-
- End Function
-
- Private Sub Class_Initialize()
- Image = "Folder"
-
- End Sub
-
- Public Property Get Children()
-
- If pChildren Is Nothing Then
- Set pChildren = New clscFileSysItems
- pChildren.Create strDirPath & Name & "\"
- End If
-
- Set Children = pChildren
-
- End Property
-
-